{template "header.htm"}
<script type="text/javascript" src="{$webaddr}/include/javascript/followpreview.js"></script>

<!--{if (!$my[user_id])}-->
<div id="homelogin">
<div style="padding:15px">
    <div style='float:left;width:70%'>
    <p><h2>Hi！这是$user[nickname]的生活点滴。</h2></p>
    <p>EasyTalk称之微博也好，便签也好，这里记录的这些小声音都会成为难忘的记忆。在这里，你可以通过手机、网页等随时随地发消息，时时刻刻看朋友。关注$user[nickname]的最新消息。</p>
    </div>
    <div style='float:right;width:25%'>
    <p><a href="{$webaddr}/op/register"><img src="{$webaddr}/images/default/button-register.png" alt="注册"></a></p>
    <p><a href="{$webaddr}/index">或者先看看大家都在做什么</a></p>
    </div>
</div>
</div>
<!--{/if}-->

<table id="columns">
<tr>
<td id="mainhome">
{template "head.htm"}
<div class="homeupdatebox">
<div class="myhome"><!--{if (!$profile)}-->$user[nickname]说<!--{else}-->我的首页<!--{/if}--></div>
<div id="homeupdate"><label for="autoupdatehome"><input type="checkbox" id="autoupdatehome" value="on" <!--{if ($autoUpdate==1)}-->checked<!--{/if}-->> <span id="updatetime">30</span>秒自动刷新</label></div>
<!--{if ($autoUpdate==1)}--><script type="text/javascript">homeup();</script><!--{/if}-->
</div>
<div id="homecontainer" style="padding:0 10px 15px 20px"></div>
</td>
<td id="sidebar">
    <!--{if (!$my[user_id])}-->
        <div class="sect first-sect">
            <h2>登录</h2>
            <form method="post" action="{$webaddr}/op/login" id="login">
            <p>
                <label class="label_input" for="loginname">用户名或Email地址</label>
                <input tabindex="1" type="text" id="loginname" name="loginname" class="input_text" value="" />
            </p>
            <p>
                <label class="label_input" for="password">登录密码：</label>
                <input tabindex="2" type="password" id="password" name="password" class="input_text" value="" maxlength="20" />
            </p>
            <p>
                <label class="label_check" for="rememberMe">
                <input tabindex="3" type="checkbox" name="rememberMe" id="rememberMe" value="on" />&nbsp;&nbsp;下次自动登录
                </label>
            </p>
            <p class="act">
                <a href="op/reset" id="forgot">忘记密码了？</a>
                <input type="hidden" name="action" value="login" />
                <input tabindex="4" type="submit" class="formbutton" value="登录" />
            </p>
            </form>
        </div>
        <div class="sect">
    <!--{/if}-->
        <!--{if ($p3)}--><div class="ads3"><!--{loop $p3 $key $val}--><div style="margin-bottom:5px">{echo base64_decode($val)}</div><!--{/loop}--></div><!--{/if}-->
        <div class="sect first-sect">
        <ul><p>
        <!--{if ($user[auth_email]==1)}-->
        <a href="{$webaddr}/op/mailauth" title="邮箱已验证"><img src="{$webaddr}/images/default/mail.gif" /></a>&nbsp;&nbsp;
        <!--{/if}-->
        <!--{if ($user[gtalk] && !$user[gtalkauthcode])}-->
        <a href="{$webaddr}/op/im" title="已绑定Gtalk"><img src="{$webaddr}/images/default/gtalk.gif" /></a>&nbsp;&nbsp;
        <!--{/if}-->
        </p>
        <table border="0" width="100%">
            <tr>
                <!--{if ($profile)}--><td rowspan="3" width="80px"><img src="{$user[user_head]}" width="65px" height="65px" alt="{$user[nickname]}" class="imgborder"></td><!--{/if}-->
                <td><!--{if (!$profile)}-->昵称：<!--{/if}-->{$user[nickname]}</td>
            </tr>
            <tr>
                <td>第 {$user[user_id]} 号微客</td>
            </tr>
            <tr>
                <td>微博达人：{echo $user[indextop]==1?已上榜:未上榜}
                <!--{if ($my[isadmin])}-->
                    <!--{if ($user[indextop]==1)}-->
                        <a href="javascript:void(0)" onclick="location.href='{$webaddr}/index.php?act=indextop&op=down&uname=$user[user_name]'">下榜</a>
                    <!--{else}-->
                        <a href="javascript:void(0)" onclick="location.href='{$webaddr}/index.php?act=indextop&op=up&uname=$user[user_name]'">上榜</a>
                    <!--{/if}-->
                <!--{/if}--></td>
            </tr>
        </table>
        <!--{if ($profile)}--><p><a href="{$webaddr}/{$user[user_name]}">{$webaddr}/{$user[user_name]}</a></p><!--{/if}-->
        <!--{if ($user[user_gender] || $user[home_city] || $user[live_city] || $user[user_info])}-->
            <!--{if ($user[user_gender])}--><p>性别：{$user[user_gender]}</p><!--{/if}-->
            <!--{if ($user[home_city])}--><p><li>家乡：{$user[home_city]}</li></p><!--{/if}-->
            <!--{if ($user[live_city])}--><p><li>居住：{$user[live_city]}</li></p><!--{/if}-->
            <!--{if ($user[birthday])}--><p><li>年龄：{$user[old]}岁</li></p><!--{/if}-->
            <!--{if ($user[user_info])}--><p><li>签名：{echo ubb($user[user_info])}</li></p><!--{/if}-->
        <!--{/if}--> 
        <!--{if ($user[musicaddr])}-->
            <p><li>
            <object id="audioplayer_32" height="17" width="200" type="application/x-shockwave-flash" data="$webaddr/images/player.swf">
            <param name="movie" value="$webaddr/images/player.swf"/>
            <param name="FlashVars" value="autostart=no&bg=0xCDDFF3&leftbg=0x357DCE&lefticon=0xF2F2F2&rightbg=0xF06A51&rightbghover=0xAF2910&righticon=0xF2F2F2&righticonhover=0xFFFFFF&text=0x357DCE&slider=0x357DCE&track=0xFFFFFF&border=0xFFFFFF&loader=0xAF2910&soundFile=$user[musicaddr]"/>
            <param name="quality" value="high"/>
            <param name="wmode" value="Transparent"/>
            <param name="menu" value="false"/>
            <!--{if ($user[theme_sidebar])}--><param name="bgcolor" value="$user[theme_sidebar]"/><!--{else}--><param name="bgcolor" value="#e2f2da"/><!--{/if}-->
            </object>
            </li></p>
        <!--{/if}-->
        </div>
        </ul>
    </div>
    
    <ul id="user_stats">
        <li><a href="{$webaddr}/op/follows/{$user[user_name]}"><span class="count">{$user[follow_num]}</span><span class="label">关注</span></a></li>
        <li><a href="{$webaddr}/op/follows/{$user[user_name]}&act=followme"><span class="count">{$user[followme_num]}</span><span class="label">粉丝</span></a></li>
        <!--{if ($profile)}-->
        <li><a href="{$webaddr}/{$user[user_name]}"><span class="count" id="mymsgnum">{$user[msg_num]}</span><span class="label">消息</span></a></li>
        <!--{else}-->
        <li><a href="javascript:void(0);" onclick="showhome('home','{$user[user_name]}','new');"><span class="count">{$user[msg_num]}</span><span class="label">消息</span></a></li>
        <!--{/if}-->
    </ul>

    <div class="stabs">
    <ul id="homestabs">
    <!--{if ($profile)}-->
        <li id="stab_friend"><a href="javascript:void(0);" onclick="showhome('friend','{$my[user_name]}','new')">动态信息</a></li>
        <li id="stab_privacy"><a href="javascript:void(0);" onclick="showhome('privacy','{$my[user_name]}','new');">隐私消息</a></li>
        <li id="stab_favorite"><a href="javascript:void(0);" onclick="showhome('favorite','{$my[user_name]}','new')">我的收藏(<span id="favoritenum">{$my[fav_num]}</span>)</a></li>
        <li id="stab_replies"><a href="javascript:void(0);" onclick="showhome('replies','{$my[user_name]}','new')">@回复我的</a></li>
    <!--{/if}-->
    <script type="text/javascript">showhome("{$hms}","{$user[user_name]}");</script>
    </ul>
    </div>
    <div class="sect first-sect">
        <h2>推荐用户</h2>			
        <ul class="alist">{$tuijian}</ul>
    </div>
    <!--{if ($folownum>0)}-->
    <div class="sect">
        <h2>{$user[nickname]}的粉丝</h2>
        <ul class="alistsmall">
        <!--{loop $myfri $key $val}-->
        <li><a href="{$webaddr}/{$val[usname]}"><img alt="{$val[usnickname]}" id="fu{$val[uid]}" class="followpreview" src="{$val[ushead]}"/></a></li>
        <!--{/loop}-->
        </ul>
        <a class="more" href="$webaddr/op/follows/{$user[user_name]}&act=followme">&#187; 更多</a>
    </div>
    <!--{/if}-->
    <div class="sect">
        <a href="$webaddr/keywords" style="float:right">更多话题>></a>
        <h2>热门话题</h2>
        <ul class="tlist">{$topics}</ul>
    </div>
    <div class="sect">
        <p class="rssfeed"><a href="{$webaddr}/{$user[user_name]}.rss" target="_blank" title="订阅{$user[nickname]}的消息">订阅{$user[nickname]}的消息</a></p>
    </div>
    <!--{if ($p4)}--><div class="ads4"><!--{loop $p4 $key $val}--><div style="margin-top:5px">{echo base64_decode($val)}</div><!--{/loop}--></div><!--{/if}-->
</td>
</tr>
</table>
{template "foot.htm"}